home *** CD-ROM | disk | FTP | other *** search
Text File | 1992-10-02 | 1.5 KB | 51 lines | [TEXT/KAHL] |
- /* ObOSpec.h
- * Interface to routines to handle typeObjectSpecifier objects for Word Services
- * ©1992 Working Software, Inc.
- * This source code is copyrighted. Permission is granted to use the Word Services
- * portion of the Writeswell Jr. source code in your own programs, but you
- * may not distribute the Writeswell Jr. word-processor code as a
- * commercial product. If you modify the code, please do not call it
- * Writeswell Jr. (or Writeswell.) This will ensure that people understand the
- * program and don’t have to deal with a number of different versions with
- * who-knows-what going on in the code.
- *
- * Writeswell Jr. and Writeswell are trademarks of Working Software, Inc.
- * 24 Dec 91 Mike Crawford
- */
-
- enum {
- typeOSpecToken = 'osTk'
- };
-
- /* It would probably be better to use a descriptor that contained a real object
- * specifier here. This would require a custom token disposal routine.
- */
-
- typedef struct {
- DescType propertyCode;
- WindowPtr theWindowPtr;
- long textItem;
- } OSpecTokenBody;
-
- OSErr DispatchOspec( AEDesc *tokenPtr,
- AppleEvent *theAppleEventPtr,
- AppleEvent *replyEventPtr,
- long refCon );
-
- OSErr OspecGetDataHandler( AEDesc *tokenPtr,
- AppleEvent *theAppleEventPtr,
- AppleEvent *replyEventPtr,
- long refCon );
-
- pascal OSErr OspecFromWind(DescType desiredClass,
- const AEDesc *container,
- DescType containerClass,
- DescType form,
- const AEDesc *selectionData,
- AEDesc *theToken,
- long LongInt);
- OSErr CountOSpecInWind( WindowPtr wp, long *countPtr );
-
-
-
-